package com.entity.myInterface;

import java.util.List;

import com.entity.paging.RoleSearchCondition;
import com.shiro.entity.Role;
import org.springframework.data.domain.Page;


public interface RoleRepositoryCustom {
	
	List<Role> findAll(String app);

	Page<Role> search(int pageNo, int pageSize, String condition, String app);


	/**
	 * 分页查询
	 * @return
	 */
	public Page<Role> findByPage(RoleSearchCondition rsc);
	
	/**
	 * 通过Roled代码查询
	 * @return
	 */
	public Role findByCode(String code);
	
	/**
	 * 更新 
	 * @param role
	 * @param op
	 */
	public void update(Role role, String op);
}